//
//  TextFTableViewCell.m
//  SafeFoodManagerDemo
//
//  Created by bob on 2017/10/16.
//  Copyright © 2017年 bob. All rights reserved.
//

#import "TextFTableViewCell.h"

@implementation TextFTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.TB_textFile.leftView=[[UIView alloc]initWithFrame:CGRectMake(0, 0, 8, 0)];
    
    self.TB_textFile.leftViewMode = UITextFieldViewModeAlways;
    
      self.TB_textFile.layer.borderWidth=1.0;
    
     self.TB_textFile.layer.borderColor=[UIColor lightGrayColor].CGColor;
    
    self.TB_textFile.layer.cornerRadius=3;
    
    
    self.TB_textFile.layer.masksToBounds=YES;
    
    self.TB_textFile.clearButtonMode=UITextFieldViewModeWhileEditing;
    
    self.TB_textFile.bk_didBeginEditingBlock = ^(UITextField * textf) {
        
        textf.layer.borderColor=TBColorAppTheme.CGColor;
      
    };
    
    self.TB_textFile.bk_shouldEndEditingBlock = ^BOOL(UITextField *textf) {
       
        textf.layer.borderColor=[UIColor lightGrayColor].CGColor;
        
        return YES;
        
    };
    
    // Initialization code
}

-(void)setPlaceHolder:(NSString *)placeHolder
{
    _placeHolder=placeHolder;
 
    self.TB_textFile.placeholder=placeHolder;
    
}




- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
